home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / ein / sources / loadsrc.lzh / LOAD / RES_PANL.C < prev    next >
C/C++ Source or Header  |  1994-07-21  |  3KB  |  123 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    ID_PANEL[6] ;
  9. extern int    func_Quit() ;
  10. extern int    func_Close() ;
  11. extern int    func_getInt() ;
  12.  
  13. #define ALIGN    4
  14. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  15.  
  16. /*    MMI_init ùpâfü[â^    */
  17.  
  18. /*    âwâbâ_    */
  19.  
  20. MMIINIT    initDataRES_PANL = { "MmiInit",   6, 0 } ;
  21.  
  22. /* ID_PANEL[0] */
  23.  
  24. static MMIPACKET d001 = {    &ID_PANEL[0],
  25.                             NULL,
  26.                             &MJ_WINDOWL40,
  27.                             OFFSET(WINDOWL40),
  28.                             MS_NONE
  29.                         } ;
  30. static WINDOWL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_TITLEL40,
  31.                               36, 172, 203, 225, 8, 4, 8,
  32.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  33.                             NULL,   0,   0,
  34.                                1,  17,   0,   0,
  35.                              128,  96, 640, 480,
  36.                             0,
  37.                             " ",
  38.                         } ;
  39.  
  40. /* ID_PANEL[1] */
  41.  
  42. static MMIPACKET d002 = {    &ID_PANEL[1],
  43.                             &ID_PANEL[0],
  44.                             &MJ_ICONL40,
  45.                             OFFSET(ICONL40),
  46.                             MS_NONE
  47.                         } ;
  48. static ICONL40    d002d =     {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_CENTERL40,
  49.                               40, 175,  51, 186, 8, 4, 8,
  50.                             MS_UFRAMEL40 | MS_FRAMEL40,
  51.                             func_Quit,
  52.                             0x801d, 512
  53.                         } ;
  54.  
  55. /* ID_PANEL[2] */
  56.  
  57. static MMIPACKET d003 = {    &ID_PANEL[2],
  58.                             &ID_PANEL[0],
  59.                             &MJ_ICONL40,
  60.                             OFFSET(ICONL40),
  61.                             MS_NONE
  62.                         } ;
  63. static ICONL40    d003d =     {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_CENTERL40,
  64.                              187, 175, 198, 186, 8, 4, 8,
  65.                             MS_UFRAMEL40 | MS_FRAMEL40,
  66.                             func_Close,
  67.                             0x000b, 513
  68.                         } ;
  69.  
  70. /* ID_PANEL[3] */
  71.  
  72. static MMIPACKET d004 = {    &ID_PANEL[3],
  73.                             &ID_PANEL[0],
  74.                             &MJ_MSGL40,
  75.                             OFFSET(MSGL40),
  76.                             MS_NONE
  77.                         } ;
  78. static MSGL40    d004d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  79.                               56, 173, 183, 188, 8, 8,15,
  80.                             MS_NONEL40,
  81.                             "òëë╫ò\Ī",
  82.                                1,  12,  12,
  83.                             MS_NONEL40,
  84.                                0,   0
  85.                         } ;
  86.  
  87. /* ID_PANEL[4] */
  88.  
  89. static MMIPACKET d005 = {    &ID_PANEL[4],
  90.                             &ID_PANEL[0],
  91.                             &MJ_MSGL40,
  92.                             OFFSET(MSGL40),
  93.                             MS_NONE
  94.                         } ;
  95. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  96.                               52, 197, 135, 212, 8, 4, 8,
  97.                             MS_NONEL40,
  98.                             "îvæ¬è╘èu(sec)",
  99.                                1,  12,  12,
  100.                             MS_NONEL40,
  101.                                0,   0
  102.                         } ;
  103.  
  104. /* ID_PANEL[5] */
  105.  
  106. static MMIPACKET d006 = {    &ID_PANEL[5],
  107.                             &ID_PANEL[0],
  108.                             &MJ_NUMBOXL40,
  109.                             0,
  110.                             MS_NONE
  111.                         } ;
  112. static NUMBOXL40    d006d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  113.                              142, 194, 190, 217, 8, 7,15,
  114.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  115.                             func_getInt,
  116.                                1,  12,  12,
  117.                             MS_NONEL40,
  118.                                2,   0,
  119.                                3,   1, 600,   1,   0,
  120.                              281, 282
  121.                         } ;
  122.  
  123.